package model;




public class DVD extends Resource {
    private final int duration; // 单位：分钟


    public DVD(String id, String title, int duration) {
        super(id, title);
        this.duration = duration;
    }


    public int getDuration() {
        return duration;
    }


    @Override
    public String toString() {
        return String.format("DVD [ID: %s, Title: %s, Duration: %d min, Available: %b]",
                getId(), getTitle(), duration, isAvailable());
    }
}
